/*
 * Copyright (c) 2018-2999 湖南洛云网络科技有限公司 All rights reserved.
 *
 * https://www.gz-yami.com/
 *
 */

package com.yami.shop.delivery.comment.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yami.shop.bean.app.dto.DeliveryDto;
import com.yami.shop.delivery.comment.param.OrderItemParam;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 *
 *
 * @author lhd
 * @date 2020-04-22 15:46:05
 */
@Data
@TableName("tz_delivery_order")
public class DeliveryOrder implements Serializable{
    private static final long serialVersionUID = 1L;

    /**
     * 订单物流包裹id
     */
    @TableId
    @ApiModelProperty(value = "订单物流包裹id", required = true)
    private Long orderDeliveryId;
    /**
     * 订单号
     */
    @ApiModelProperty(value = "订单号", required = true)
    private String orderNumber;
    /**
     * 快递公司编号
     */
    @ApiModelProperty(value = "订单号", required = true)
    private Long dvyId;
    /**
     * 快递单号
     */
    @ApiModelProperty(value = "快递单号", required = true)
    private String dvyFlowId;
    /**
     * 快递公司名称
     */
    @ApiModelProperty(value = "快递公司名称", required = true)
    @TableField(exist = false)
    private String dvyName;
    /**
     * 物流状态 1正常 -1删除
     */
    @ApiModelProperty(value = "物流状态 1正常 -1删除", required = true)
    private Integer status;
    /**
     * 包裹商品总数
     */
    @ApiModelProperty(value = "包裹商品总数", required = true)
    private Integer productNums;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", required = true)
    private Date createTime;
    /**
     * 删除时间
     */
    @ApiModelProperty(value = "删除时间", required = true)
    private Date deleteTime;

    /**
     * 包裹所有商品
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "包裹所有商品")
    private List<OrderItemParam> orderItems;

    /**
     * 物流信息
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "物流信息")
    private DeliveryDto deliveryDto;
}
